package com.lzx.shop.model;

import com.lzx.shop.dataobject.CategoryDO;
import com.lzx.shop.dataobject.ProductDO;
import com.lzx.shop.dataobject.StoreDO;
import lombok.Data;
import org.springframework.beans.BeanUtils;

/**
 * @author 刘正星
 * @version 1.0.0
 * @ClassName Product.java
 * @Description TODO
 * @createTime 2021年03月17日 23:02:00
 */

@Data
public class Product extends ProductDO {

    public Product(ProductDO productDO){
        BeanUtils.copyProperties(productDO,this);
    }


   private CategoryDO category;

}
